const { merge } = require("webpack-merge");

// 引入公共配置
const common = require("./webpack.common.js");

// 合并配置
module.exports = merge(common, {
  mode: "development",

  // source-map 模式
  devtool: "eval-cheap-module-source-map",

  devServer: {
    contentBase: ["dist", "public"],
    hot: true,
  },
});
